projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf6b975
)
libxc: Avoid a constant-zero-sized memset().
author
Keir Fraser
<keir.fraser@citrix.com>
Mon, 31 Aug 2009 09:14:26 +0000
(10:14 +0100)
committer
Keir Fraser
<keir.fraser@citrix.com>
Mon, 31 Aug 2009 09:14:26 +0000
(10:14 +0100)
Some environments warn about this, which fails the build.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/libxc/xc_core.c
patch
|
blob
|
history
diff --git
a/tools/libxc/xc_core.c
b/tools/libxc/xc_core.c
index 8121a08bf04901a4cfdf83c1f58cede10dd58759..0c226ac7b285d6039e373b7d14f8a41754c25f11 100644
(file)
--- a/
tools/libxc/xc_core.c
+++ b/
tools/libxc/xc_core.c
@@
-321,7
+321,8
@@
elfnote_dump_none(void *args, dumpcore_rtn_t dump_rtn)
struct xen_dumpcore_elfnote_none_desc none;
elfnote_init(&elfnote);
- memset(&none, 0, sizeof(none));
+ /* Avoid compile warning about constant-zero-sized memset(). */
+ /*memset(&none, 0, sizeof(none));*/
elfnote.descsz = sizeof(none);
elfnote.type = XEN_ELFNOTE_DUMPCORE_NONE;